package jpb.module.dao.apply.mapper;

import jpb.module.daomain.apply.Apply;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by haol on 2017/5/7.
 */
@Component
public interface ApplyMapper {


        List<Apply> getApplyByOidAndStateIsZero(@Param("oid") String oid);

        void add(@Param("apply") Apply apply);

        List<Apply> getApplyByOid(@Param("oid") String oid);

        Apply get(@Param("id") Integer id);

        List<Apply> getByNum(@Param("memberNum") String memberNum);

        void update(@Param("apply") Apply apply);

        List<Apply> getByOidAndState(@Param("oid") String oid, @Param("state") int state, @Param("num") String num);

        void delete(@Param("id") Integer id);
}
